package dataStructure.primary.stack;

import com.sun.media.sound.SoftTuning;

import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Queue;

/**
 * @author Summerday
 */
public class StackDemo {

    public static void main(String[] args) {

        Deque<Integer> stack = new ArrayDeque<>();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        System.out.println(stack);

        stack.pop();
        System.out.println(stack);
    }
}
